package com.hsteach.dao.mapper.equipment;

import com.hsteach.dao.domain.equipment.EquipmentRepair;
import com.hsteach.web.controller.equipment.dto.EquipmentPublicDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备报修填报信息 mapper
 */
public interface EquipmentRepairMapper {

    /**
     * 查询设备报修列表
     * @param dto
     * @return
     */
    List<EquipmentRepair> queryList(EquipmentPublicDto dto);

    /**
     * 查询设备报修详情
     * @param id
     * @return
     */
    EquipmentRepair queryDetail(Long id);

    Long insert(EquipmentRepair equipmentRepair);

    List<EquipmentRepair> queryListForMaintainer(EquipmentPublicDto dto);

    int update(EquipmentRepair equipmentRepair);

    Long selectCount(EquipmentRepair equipmentRepair);

    List<Long> queryIdsByType(EquipmentPublicDto equipmentPublicDto);

    void batchUpdateByIds(@Param("ids") List<Long> ids, @Param("personId")String personId);
}
